<template>
	<view class="protocol" >
		<view class="content" v-html='content'></view>
		<view class="seat"></view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				idx:'',
				name:'',
				id:'',
				content:'',
				datas:{},
				is_show_pay:2,
			};
		},
		onLoad(e){
			this.idx = e.idx;
			this.id = e.id;
			this.name = e.name;
			this.initUserInfo();
		},
		onShow(){
			this.initData();
		},
		methods:{
			// 列表数据
			initData(){
				this.tool.getData('User/vipPrice',{
					memberId:uni.getStorageSync('userId')?uni.getStorageSync('userId'):'',
				}).then(res=>{
					if(res){
						this.content = res[this.idx].intro;
					}
				}).catch(err=>{
					console.log(err);
				})
			},
			// 用户信息
			initUserInfo(){
				this.tool.getUserInfo().then(res=>{
					this.datas = res;
					this.is_show_pay = res.is_show_pay;
				}).catch(err=>{ 
					console.log(err);
				})
			},
			
		}
	}
</script>

<style lang="scss">
	.protocol{
		width: 100%;
		padding:12px;
		box-sizing: border-box;
		.btns{
			width:100%;	
			position:fixed;
			bottom:0;
			left:0;
			padding: 12px;
			background:white;
			box-sizing: border-box;
			.btn {
				width: 100%;
				background: linear-gradient(0deg, #609ff8 0%, #1664ff 100%);
				text-align: center;
				display: block;
				padding: 24rpx 0;
				font-size: 13px;
				color: white;
				border-radius: 80rpx;
			}
		}
		.content{
			width:100%;
		}
	}
</style>
